<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test</title>
</head>
<body>
<script>
    import 'vue'

    let person = {
        name: '曾宇杰',
        age: 18
    }

    let p1 = new Proxy(person, {
        set: function (target, key, value) {
            console.log(`${key}被修改啦`)
        }
    })

    let name = person.name //这个只是将person.name的值作为字符串给name变量,没有响应式
</script>
</body>
</html>